<?php

namespace app\common\validate;



use think\Validate;



class School extends Validate

{

    protected $rule = [

        'name'  => 'require',
        'province'      => 'require',
        'city'      => 'require',
        'district'      => 'require',

    ];



    protected $message = [

        'name'  => '名称不能为空',

        'province'   => '省份不能为空',

        'city'   => '城市不能为空',

        'district'   => '区县不能为空',

    ];



    protected $scene = [

        'add' => ['name','province','city','district'],

    ];

}